package classes.file.format;

class Main04 {
  
  private static int count;
  
  static {
    System.out.println("此处执行静态代码块 ~~~");
    System.out.println("count(1):" + count);
  }
  
  public Main04() {
    System.out.println("count(2):" + count);
    count += 1;
    System.out.println("执行构造方法 ~~~~");
    System.out.println("count(3):" + count);
  }
}

class Main0401 {
  static {
    System.out.println("初期化 类【Main0401】");
  }
}


public class TestMain04{
  public static void main(String[] args) {
    new Main04();
  }
}
